package com.all.common;

import com.all.ui.R;

import android.view.Menu;
import android.view.MenuItem;

public class ActionBarManager {

	/**
	 * 初始化【提交】右侧按钮菜单
	 * @param mOptionsMenu
	 */
	public static void initActionBarSubmitButton(Menu mOptionsMenu,int id){
		final MenuItem menuItem = mOptionsMenu.findItem(id);
		menuItem.setVisible(true);
		/*switch(id)
		{
			case R.id.action_search:
				menuItem.setVisible(true);
			break;
			case R.id.action_fav:
			break;
			case R.id.action_settings:
				break;
			case R.id.action_share:
				break;
			case R.id.action_submit:
				break;
			case R.id.action_about:
				break;
		}*/
	}
}
